package com.ldatum.crm.dao;

import java.util.List;

import com.ldatum.crm.domain.Contacts;

public interface ContactsDao {
	void add(Contacts contacts) throws Exception;
	void delete(Contacts contacts,int id) throws Exception;
	void update(Contacts contacts,int id) throws Exception;
	Contacts findById(Class<Contacts> clazz,int id) throws Exception;
	List<Contacts> list(Class<Contacts> clazz ) throws Exception;
	Contacts findNameByNo(String no) throws Exception;
	List<Contacts> findByNo(Class<Contacts> clazz, String no) throws Exception;
}
